import request from '@/utils/request'
// 测量设备管理

// 检定计划列表
export function listPlanList(params) {
  return request({
    url: '/TMeasuringEquipment/measuringEquipmentVerification/list',
    method: 'get',
    params
  })
}

// 检定计划子菜单查询
export function listPlanlistChild(query) {
  return request({
    url: '/TMeasuringEquipment/measuringEquipmentVerificationDevice/list',
    method: 'get',
    params: query
  })
}

// 下发
export function issuePlan(data) {
  return request({
    url: '/TMeasuringEquipment/measuringEquipmentVerification/issuePlan',
    method: 'post',
    params: data
  })
}

// 提交
export function submitPlan(data) {
  return request({
    url: '/TMeasuringEquipment/measuringEquipmentVerification/submitRepair',
    method: 'post',
    data: data
  })
}

// 审批
export function planApprove(data) {
  return request({
    url: '/TMeasuringEquipment/measuringEquipmentVerification/approverRepair',
    method: 'post',
    data: data
  })
}

